﻿
using BCCommon;
using BCCommon.Enums;
using BCData.HelpDocument.HelpDocumentCategory;
using BCDto.HelpDocument.HelpDocumentCategory;
using BCDto.Sim.Admin.Admin;
using BCEntity.HelpDocument.HelpDocumentCategory;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.HelpDocument.HelpDocumentCategory
{
    /// <summary>
    /// 帮助文档类型
    /// </summary>
    public interface IHelpDocumentCategoryService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="helpDocumentCategoryId">帮助文档类型Id</param>
        bool Exists(long helpDocumentCategoryId);
        /// <summary>
        /// 添加帮助文档类型
        /// </summary>
        /// <param name="requestDto">帮助文档类型信息</param>
        /// <param name="adminDto"></param>
        HelpDocumentCategoryDto Add(HelpDocumentCategoryRequestDto requestDto, AdminDto adminDto);
        /// <summary>
        /// 更新帮助文档类型
        /// </summary>
        /// <param name="putDto">帮助文档类型信息</param>
        /// <param name="adminDto"></param>
        HelpDocumentCategoryDto Update(HelpDocumentCategoryPutDto putDto, AdminDto adminDto);
        /// <summary>
        /// 删除帮助文档类型
        /// </summary>
        /// <param name="helpDocumentCategoryId">帮助文档类型Id</param>
        bool Delete(long helpDocumentCategoryId);
        /// <summary>
        /// 获取帮助文档类型
        /// </summary>
        /// <param name="helpDocumentCategoryId">帮助文档类型Id</param>
        HelpDocumentCategoryDto Get(long helpDocumentCategoryId);
        /// <summary>
        /// 获取帮助文档类型列表
        /// </summary>
        IEnumerable<HelpDocumentCategoryDto> GetList();
        /// <summary>
        /// 获取帮助文档类型分页列表
        /// </summary>
        /// <param name="documentCategoryName">文档分类名称</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="sortName">排序字段</param>
        /// <param name="ascending">升序</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">帮助文档类型每页数据条数</param>
        PageableList<HelpDocumentCategoryDto> Query(string documentCategoryName, DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
        #endregion  成员方法
    }
}